package xy.property;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import xy.property.entity.User;

@Slf4j
@SpringBootApplication
public class BootConditionalPropertyApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context =  SpringApplication.run(BootConditionalPropertyApplication.class, args);
        User user = context.getBean(User.class);
        log.info(user.toString());
    }

}
